import yzRequest from "./index"
// 轮播图数据
export function getSwiperData() {
  return yzRequest.get("banner", {
    type: 1
  })
}

// 歌单数据
export function getSongsMenuData(cat, limit = 10, offset = 0) {
  return yzRequest.get("top/playlist", {
    cat,
    limit,
    offset
  })
}

// 歌单排名
export function getSongsRank(idx) {
  return yzRequest.get("top/list", {
    idx
  })
}

// 歌单详细数据
export function getSongsMenuDetail(id) {
  return yzRequest.get("playlist/detail/dynamic", {
    id
  })
}

// 歌曲详情数据
export function getSongDetail(ids) {
  return yzRequest.get("song/detail", {
    ids
  })
}

// 歌曲歌词数据
export function getSongLyric(id) {
  return yzRequest.get("lyric", {
    id
  })
}